#include <stdio.h>

#define KERNCALL __attribute__((regparm(3)))
typedef char (fun)(char);

char f(char a){
    printf("character is %c\n", a);
    return (int)a;
}

int main(){
    char (*h)(char) KERNCALL = &f;
    h('A');
    return 0;
}
